package com.apex.lottery.service;

import com.apex.lottery.controller.param.CreatePrizeParam;
import com.apex.lottery.controller.param.PageParam;
import com.apex.lottery.service.dto.PageListDTO;
import com.apex.lottery.service.dto.PrizeDTO;
import jakarta.validation.Valid;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName AwardService
 * @Description
 * @Author ZJX
 * @Date 2025/4/17 15:02
 * @Version 1.0
 **/
public interface AwardService {
    /**
     * 创建单个奖品
     *
     * @param param 奖品属性
     * @param picFile  上传的奖品图
     * @return  奖品id
     */
    Long createPrize(@Valid CreatePrizeParam param, MultipartFile picFile);

    /**
     * 翻页查询列表
     *
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
